package com.victualler.core.config.permission.controller;

import com.victualler.core.base.controller.BaseRestController;
import com.victualler.core.common.dto.PageDto;
import com.victualler.core.config.permission.dto.request.UserRequestDto;
import com.victualler.core.config.permission.entity.UserInfoDao;
import com.victualler.core.config.permission.repository.UserInfoQueryRepository;
import com.victualler.core.config.permission.repository.UserInfoRepository;
import com.victualler.core.config.permission.service.UserInfoService;


/**
 * @author: Guoshichang
 * @discription:
 */
public interface UserInfoController  extends BaseRestController<UserInfoDao,UserInfoRepository,UserInfoQueryRepository,UserInfoService> {
    /**
     * @author Guoshichang
     * @since 19:04 on 2018/7/5.
     * @param userId 用户id
     * @Function  获取用户id
     */
    public UserInfoDao  getByUserId(String userId);


    /**
     * @author Guoshichang
     * @since 13:39 on 2018/7/7.
     * @param userRequestDto
     * @Function  根据条件入参PermissionRequestDto动态分页查询权限
     */
    public PageDto<UserInfoDao> getByRequestDto(UserRequestDto userRequestDto, int pageNo , int limit);
}
